package com.atguigu.eduservice.service;

import com.atguigu.eduservice.entity.EduSubject;
import com.atguigu.eduservice.entity.vo.subject.OneSubject;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * 课程科目服务接口
 * @author daygods
 * @since 2025-07-16
 */
public interface EduSubjectService extends IService<EduSubject> {

    /**
     * 添加课程分类
     * @param file Excel文件
     * @param eduSubjectService 服务对象
     */
    void saveSubject(MultipartFile file, EduSubjectService eduSubjectService);

    /**
     * 课程分类列表（树形）
     * @return 分类列表
     */
    List<OneSubject> getAllOneTwoSubject();
}